package org.arabidopsis.plantCyc;

import java.io.*;
import java.util.*;

import org.xml.sax.*;

public class StreamHandler extends Thread
  {
      InputStream is;
      OutputStream os;
      
      StreamHandler(InputStream is, OutputStream os)
      {
          this.is = is;
          this.os = os;
      }
      
     /* StreamHandler(String inStr, OutputStream os)
      {
          this.is = new BufferedInputStream();
          this.os = os;
      }
      */
      public void run()
      {
          try
          {
              int c;
              
              while ((c = is.read()) != -1)
              {
                  os.write(c);
                  os.flush();
              }
          }
          catch (IOException e)
          {
          }
      }
  
  }
